package com.guigu.tms.manager.controller.ldl;

import com.github.pagehelper.PageInfo;
import com.guigu.tms.commons.entity.work.DriverJob;
import com.guigu.tms.commons.work.feign.DriverFeign;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController("driverJob1")
@RequestMapping("/driverJob")
public class DriverJobController {
    @Autowired
    DriverFeign driverFeign;
    @RequestMapping("/queryall")
    public PageInfo<DriverJob> queryall(@RequestBody Map<String,String> condition){
        System.out.println(driverFeign);
        return driverFeign.queryall(condition);
    }
}
